Adwaita: add a background to cellrendertext
authorLapo Calamandrei <calamandrei@gmail.com>
Wed, 27 Apr 2016 18:04:39 +0000 (20:04 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Wed, 27 Apr 2016 18:05:44 +0000 (20:05 +0200)
gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index b5889f45d529a4bd66bcd87c2838924ff4ab1fb2..dc1b3fdf19b719082282b94a56908e47d43c91f9 100644 (file)
@@ -427,6 +427,13 @@ treeview acceleditor > label {
 }
 
 treeview entry {
+  &:focus {
+    &:dir(rtl), &:dir(ltr) { // specificity bump hack
+      background-color: $base_color;
+      transition-property: color, background;
+    }
+  }
+
   &.flat, & {
     border-radius: 0;
     background-image: none;
index 7f9d327b35ac5381792406f9cae69e1277095df9..5d9a1208ad5a3ef41126b459e796ae1b713e4679 100644 (file)
@@ -405,6 +405,9 @@ entry:drop(active):not(:only-child) + combobox > box > button.combo {
 treeview acceleditor > label {
   background-color: #215d9c; }
 
+treeview entry:focus:dir(rtl), treeview entry:focus:dir(ltr) {
+  background-color: #232729;
+  transition-property: color, background; }
 treeview entry.flat, treeview entry {
   border-radius: 0;
   background-image: none;
index bf26e5d2f71658b3f8e080eda90b91f7933c02d3..5314278f4ef83f12866ec9c5ff139902df9f1f0f 100644 (file)
@@ -405,6 +405,9 @@ entry:drop(active):not(:only-child) + combobox > box > button.combo {
 treeview acceleditor > label {
   background-color: #4a90d9; }
 
+treeview entry:focus:dir(rtl), treeview entry:focus:dir(ltr) {
+  background-color: #ffffff;
+  transition-property: color, background; }
 treeview entry.flat, treeview entry {
   border-radius: 0;
   background-image: none;